﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.EntityMappings
{
    public class WorkTypeMap : ClassMap<WorkType>
    {
        public WorkTypeMap()
        {
            Id(x => x.WorkTypeId);
            Map(x => x.IsDelete);
            Map(x => x.ModifyDate);
            Map(x => x.CreateDate);
            Map(x => x.WorkTypeName);
           // References(x => x.WorkTypeInfo).Column("WorkTypeInfoId");
           // HasMany<ProjectType>(x => x.ProjectTypeList).KeyColumn("WorkTypeId").Where(t => t.IsDelete == false).Not.LazyLoad();
        }
    }
}
